﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:CoreSharp_Keyboard="clr-namespace:CoreSharp.Controls;assembly=CoreSharp.Keyboard" 
    xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:Custom="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
    xmlns:CoreSharp_Wp7_Controls="clr-namespace:CoreSharp.Wp7.Controls;assembly=CoreSharp.ThaiTextBox" 
    xmlns:CoreSharp_Controls="clr-namespace:CoreSharp.Controls;assembly=CoreSharp.ThaiTextBox" 
    x:Class="CoreSharp.ThaiSMS.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    SupportedOrientations="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		<ControlTemplate x:Key="PhoneDisabledTextBoxTemplate" TargetType="TextBox">
			<ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
		</ControlTemplate>
	</phone:PhoneApplicationPage.Resources>

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        	<shell:ApplicationBar.MenuItems>
        		<shell:ApplicationBarMenuItem IsEnabled="True" Text="send..." Click="Send_Click"/>
        		<shell:ApplicationBarMenuItem IsEnabled="True" Text="share..." Click="Share_Click"/>
        		<shell:ApplicationBarMenuItem IsEnabled="True" Text="search with bing" Click="Search_Click"/>
        		<shell:ApplicationBarMenuItem IsEnabled="True" Text="settings" Click="Settings_Click"/>
        		<shell:ApplicationBarMenuItem IsEnabled="True" Text="restore entered data" Click="Restore_Click"/>
        	</shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarIconButton IconUri="/icons/shift.png" Text="shift" Click="Shift_Click" />
            <shell:ApplicationBarIconButton IconUri="/icons/more.png" Text="more" Click="Alt_Click"/>
			<shell:ApplicationBarIconButton IconUri="/icons/space.png" Text="space" Click="Space_Click"/>
            <shell:ApplicationBarIconButton IconUri="/icons/bksp.png" Text="bksp" Click="Delete_Click" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

    <Grid x:Name="LayoutRoot" Background="Transparent">
    	<VisualStateManager.VisualStateGroups>

    		<VisualStateGroup x:Name="AppStates">
    			<VisualStateGroup.Transitions>
    				<VisualTransition GeneratedDuration="0:0:0.25">
    					<VisualTransition.GeneratedEasingFunction>
    						<CircleEase EasingMode="EaseOut"/>
    					</VisualTransition.GeneratedEasingFunction>
    				</VisualTransition>
    			</VisualStateGroup.Transitions>
    			<VisualState x:Name="Normal">
    				<Storyboard>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="image">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<System:Boolean>False</System:Boolean>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="74" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="1.3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="image" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="1.3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="Loading">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="Help">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="HelpCanvas" d:IsOptimized="True"/>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="HelpCanvas">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<System:Boolean>True</System:Boolean>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="button" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="ShareSelection">
    				<Storyboard>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShareGrid">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<Visibility>Visible</Visibility>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ShareGrid" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="SendSelection">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="SendGrid" d:IsOptimized="True"/>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="SendGrid">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<Visibility>Visible</Visibility>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    				</Storyboard>
    			</VisualState>				
    		</VisualStateGroup>
    		<VisualStateGroup x:Name="Indicator">
    			<VisualStateGroup.Transitions>
    				<VisualTransition GeneratedDuration="0:0:0.5"/>
    			</VisualStateGroup.Transitions>
    			<VisualState x:Name="ThaiIndicator"/>
    			<VisualState x:Name="EngIndicator">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PageTitleEng" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="EN" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="TH" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    		</VisualStateGroup>
    	</VisualStateManager.VisualStateGroups>
        <Grid.RowDefinitions>
        	<RowDefinition Height="65"/>
        	<RowDefinition/>
        </Grid.RowDefinitions>

        <Grid x:Name="TitlePanel" Margin="12,0,0,0" Grid.Row="0">
    		<TextBlock x:Name="ApplicationTitle" Text="coresharp.net" Style="{StaticResource PhoneTextNormalStyle}" IsHitTestVisible="False" VerticalAlignment="Top" Margin="0,0,12,0" Opacity="0.8"/>
    		<TextBlock x:Name="PageTitleEng" Text="thai start" Margin="0,20,0,-5" Style="{StaticResource PhoneTextTitle1Style}" FontFamily="/CoreSharp.ThaiSMS;component/Fonts/Fonts.zip#Leelawadee" IsHitTestVisible="False" d:LayoutOverrides="Height" FontSize="40"/>
    		<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
    			<Button x:Name="ClearButton" Margin="0,0,-12,1" Click="Clear_Click" Content="C" FontSize="21.333" d:LayoutOverrides="Height"/>
    			<Button x:Name="button" Content="?" Margin="0" d:LayoutOverrides="Height" Click="Help_Click" FontSize="21.333"/>
    		</StackPanel>
    	</Grid>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0">
        	<Button x:Name="SwitchButton" Click="SwitchLang_Click" Margin="0,173,0,0" FontSize="21.333" HorizontalAlignment="Left" Height="65" VerticalAlignment="Top">
        		<Grid>
        			<TextBlock x:Name="TH" TextWrapping="Wrap" Text="TH" d:LayoutOverrides="Width, Height" Foreground="{StaticResource PhoneForegroundBrush}"/>
        			<TextBlock x:Name="EN" TextWrapping="Wrap" Text="EN" Foreground="{StaticResource PhoneForegroundBrush}" d:LayoutOverrides="Width, Height" Opacity="0"/>
    	
        		</Grid>
        	</Button>
        	<Path Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" Fill="{StaticResource PhoneTextBoxEditBackgroundBrush}" Data="F1 M 313.98,144L 311.333,151.25L 326.333,144L 313.98,144 Z " HorizontalAlignment="Right" Height="37" Margin="0,167,47.167,0" UseLayoutRounding="False" VerticalAlignment="Top" Width="42" StrokeThickness="0" IsHitTestVisible="False"/>
        	<CoreSharp_Controls:ThaiTextBox x:Name="Composer" TextWrapping="Wrap" VerticalAlignment="Top" d:LayoutOverrides="Width" Height="197" LostFocus="Composer_LostFocus" AcceptsReturn="True" GotFocus="Composer_GotFocus" InputScope="Chat" FontFamily="/CoreSharp.ThaiSMS;component/Fonts/Fonts.zip#Leelawadee" Margin="0,-12,0,0"/>
        	<TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="{Binding Text.Length, ElementName=Composer, Mode=OneWay}" VerticalAlignment="Top" Margin="0,114,11,0" Opacity="0.1" FontSize="64" Foreground="{StaticResource PhoneContrastForegroundBrush}" IsHitTestVisible="False"/>
        	<CoreSharp_Keyboard:Keyboard d:LayoutOverrides="Width" Height="Auto" Margin="0" VerticalAlignment="Bottom" x:Name="Keyboard" />
        </Grid>
        <StackPanel HorizontalAlignment="Right" Height="43" Margin="0,0,11,0" Orientation="Horizontal" VerticalAlignment="Bottom" Visibility="Collapsed">
        	<TextBlock x:Name="CharRemaining" TextWrapping="Wrap" Text="70" Foreground="{StaticResource PhoneForegroundBrush}" FontSize="32" IsHitTestVisible="False" Opacity="0.2" d:LayoutOverrides="Height"/>
        	<TextBlock x:Name="MessageCount" TextWrapping="Wrap" Text="x1" Opacity="0.5" d:LayoutOverrides="Height" VerticalAlignment="Top"/>
        </StackPanel>
        <Canvas x:Name="HelpCanvas" RenderTransformOrigin="0.5,0.5" Opacity="0" IsHitTestVisible="False" Background="{StaticResource PhoneDisabledBrush}" Grid.RowSpan="2" d:IsHidden="True">
        	<Canvas.RenderTransform>
        		<CompositeTransform/>
        	</Canvas.RenderTransform>
        	<Ellipse Height="309" Width="474" Canvas.Top="379" Canvas.Left="8">
        		<Ellipse.Fill>
        			<RadialGradientBrush>
        				<GradientStop Color="White" Offset="0.236"/>
        				<GradientStop Color="Transparent" Offset="0.944"/>
        			</RadialGradientBrush>
        		</Ellipse.Fill>
        	</Ellipse>
        	<Path Stretch="Fill" StrokeLineJoin="Round" Fill="{StaticResource PhoneContrastBackgroundBrush}" Data="F1 M 309.333,111.333L 316.471,111.333L 314.583,105.25L 325.282,111.333L 452.333,111.333C 455.095,111.333 457.333,113.572 457.333,116.333L 457.333,140.333C 457.333,143.095 455.095,145.333 452.333,145.333L 309.333,145.333C 306.572,145.333 304.333,143.095 304.333,140.333L 304.333,116.333C 304.333,113.572 306.572,111.333 309.333,111.333 Z " Height="41.083" UseLayoutRounding="False" Width="154" Canvas.Left="61.333" Canvas.Top="163" Stroke="{StaticResource PhoneBackgroundBrush}"/>
        	<TextBlock TextWrapping="Wrap" Text="touch for eng." Foreground="{StaticResource PhoneContrastForegroundBrush}" Canvas.Left="78" Canvas.Top="172" TextOptions.TextHintingMode="Animated"/>
        	<Path Stretch="Fill" StrokeLineJoin="Round" Fill="{StaticResource PhoneContrastBackgroundBrush}" Data="F1 M 309.333,111.333L 452.333,111.333C 455.095,111.333 457.333,113.572 457.333,116.333L 457.333,140.333C 457.333,143.095 455.095,145.333 452.333,145.333L 323.575,145.333L 311.333,151.25L 313.493,145.333L 309.333,145.333C 306.572,145.333 304.333,143.095 304.333,140.333L 304.333,116.333C 304.333,113.572 306.572,111.333 309.333,111.333 Z " UseLayoutRounding="False" Height="40.917" Canvas.Left="154.5" Canvas.Top="15.167" Width="154" StrokeThickness="0"/>
        	<TextBlock TextWrapping="Wrap" Text="outside for ไทย" Foreground="{StaticResource PhoneContrastForegroundBrush}" Canvas.Left="161" Canvas.Top="21" FontFamily="/CoreSharp.ThaiSMS;component/Fonts/Fonts.zip#Leelawadee" TextOptions.TextHintingMode="Animated"/>
        	<Path Stretch="Fill" Fill="#FF000000" Data="F1 M 410.5,64.416L 418.5,72.416L 413.167,72.416L 413.167,81.7493L 407.833,81.7493L 407.833,72.416L 402.5,72.416M 399.833,89.7494L 421.167,89.7494C 422.639,89.7494 423.833,88.556 423.833,87.0827L 423.833,60.4174C 423.833,58.944 422.639,57.7507 421.167,57.7507L 399.833,57.7507C 398.361,57.7507 397.167,58.944 397.167,60.4174L 397.167,87.0827C 397.167,88.556 398.361,89.7494 399.833,89.7494 Z " UseLayoutRounding="False" Width="26.667" Height="31.998" Canvas.Left="228" Canvas.Top="493.751"/>
        	<Path Stretch="Fill" Fill="#FF000000" Data="F1 M 410.5,118.084L 402.5,110.084L 407.833,110.084L 407.833,100.751L 413.167,100.751L 413.167,110.084L 418.5,110.084M 421.167,92.7506L 399.833,92.7506C 398.361,92.7506 397.167,93.944 397.167,95.4173L 397.167,122.083C 397.167,123.556 398.361,124.749 399.833,124.749L 421.167,124.749C 422.639,124.749 423.833,123.556 423.833,122.083L 423.833,95.4173C 423.833,93.944 422.639,92.7506 421.167,92.7506 Z " Height="31.998" UseLayoutRounding="False" Width="26.667" Canvas.Left="228" Canvas.Top="528.751"/>
        	<Path Stretch="Fill" Fill="#FF000000" Data="F1 M 366.166,92.0833L 374.166,84.0833L 374.166,89.4167L 383.499,89.4167L 383.499,94.75L 374.166,94.75L 374.166,100.083M 391.499,102.75L 391.499,81.4167C 391.499,79.9446 390.306,78.75 388.833,78.75L 362.167,78.75C 360.694,78.75 359.501,79.9446 359.501,81.4167L 359.501,102.75C 359.501,104.222 360.694,105.417 362.167,105.417L 388.833,105.417C 390.306,105.417 391.499,104.222 391.499,102.75 Z " Height="26.667" UseLayoutRounding="False" Width="31.999" Canvas.Left="190.334" Canvas.Top="514.75"/>
        	<Path Stretch="Fill" Fill="#FF000000" Data="F1 M 454.167,92.0833L 446.167,100.083L 446.167,94.75L 436.834,94.75L 436.834,89.4167L 446.167,89.4167L 446.167,84.0833M 428.834,81.4167L 428.834,102.75C 428.834,104.222 430.027,105.417 431.501,105.417L 458.166,105.417C 459.639,105.417 460.833,104.222 460.833,102.75L 460.833,81.4167C 460.833,79.9447 459.639,78.75 458.166,78.75L 431.501,78.75C 430.027,78.75 428.834,79.9447 428.834,81.4167 Z " Height="26.667" UseLayoutRounding="False" Width="31.999" Canvas.Left="259.667" Canvas.Top="514.75"/>
        	<TextBlock TextWrapping="Wrap" Text="delete" Foreground="Black" Canvas.Left="131" Canvas.Top="514" TextOptions.TextHintingMode="Animated"/>
        	<TextBlock TextWrapping="Wrap" Text="space" Foreground="Black" Canvas.Left="296" Canvas.Top="514" TextOptions.TextHintingMode="Animated"/>
        	<TextBlock TextWrapping="Wrap" Text="shift" Foreground="Black" Canvas.Left="222" Canvas.Top="463" TextOptions.TextHintingMode="Animated"/>
        	<TextBlock TextWrapping="Wrap" Foreground="Black" Canvas.Top="565" Canvas.Left="192" LineHeight="16" TextOptions.TextHintingMode="Animated" LineStackingStrategy="BlockLineHeight" TextAlignment="Center"><Run Text="vowels"/><LineBreak/><Run Text="consonants"/></TextBlock>
        	<Path Stretch="Fill" StrokeLineJoin="Round" Fill="{StaticResource PhoneContrastBackgroundBrush}" Data="F1 M 309.333,111.333L 452.333,111.333C 455.095,111.333 457.333,113.572 457.333,116.333L 457.333,140.333C 457.333,143.095 455.095,145.333 452.333,145.333L 323.575,145.333L 311.333,151.25L 313.493,145.333L 309.333,145.333C 306.572,145.333 304.333,143.095 304.333,140.333L 304.333,116.333C 304.333,113.572 306.572,111.333 309.333,111.333 Z " UseLayoutRounding="False" Height="40.917" Canvas.Left="256.059" Canvas.Top="361.167" Width="154" StrokeThickness="0"/>
        	<TextBlock TextWrapping="Wrap" Text="flick for more" Foreground="{StaticResource PhoneContrastForegroundBrush}" Canvas.Left="274" Canvas.Top="366" FontFamily="/CoreSharp.ThaiSMS;component/Fonts/Fonts.zip#Leelawadee" TextOptions.TextHintingMode="Animated"/>
        	<Path Stretch="Fill" StrokeLineJoin="Round" Fill="{StaticResource PhoneContrastBackgroundBrush}" Data="F1 M 309.333,111.333L 452.333,111.333C 455.095,111.333 457.333,113.572 457.333,116.333L 457.333,140.333C 457.333,143.095 455.095,145.333 452.333,145.333L 323.575,145.333L 311.333,151.25L 313.493,145.333L 309.333,145.333C 306.572,145.333 304.333,143.095 304.333,140.333L 304.333,116.333C 304.333,113.572 306.572,111.333 309.333,111.333 Z " UseLayoutRounding="False" Height="40.917" Canvas.Left="277.421" Canvas.Top="642.167" Width="154" StrokeThickness="0"/>
        	<TextBlock TextWrapping="Wrap" Text="or use these" Foreground="{StaticResource PhoneContrastForegroundBrush}" Canvas.Left="296" Canvas.Top="647" FontFamily="/CoreSharp.ThaiSMS;component/Fonts/Fonts.zip#Leelawadee" TextOptions.TextHintingMode="Animated"/>
        	<Path Stretch="Fill" StrokeLineJoin="Round" Fill="{StaticResource PhoneContrastBackgroundBrush}" Data="F1 M 309.333,111.333L 452.333,111.333C 455.095,111.333 457.333,113.572 457.333,116.333L 457.333,140.333C 457.333,143.095 455.095,145.333 452.333,145.333L 323.575,145.333L 311.333,151.25L 313.493,145.333L 309.333,145.333C 306.572,145.333 304.333,143.095 304.333,140.333L 304.333,116.333C 304.333,113.572 306.572,111.333 309.333,111.333 Z " UseLayoutRounding="False" Height="40.917" Canvas.Left="22.421" Canvas.Top="655.167" Width="154" StrokeThickness="0"/>
        	<TextBlock TextWrapping="Wrap" Text="back to close" Foreground="{StaticResource PhoneContrastForegroundBrush}" Canvas.Left="41" Canvas.Top="660" FontFamily="/CoreSharp.ThaiSMS;component/Fonts/Fonts.zip#Leelawadee" TextOptions.TextHintingMode="Animated"/>
        </Canvas>
        <Grid x:Name="ShareGrid" Grid.RowSpan="2" Opacity="0" Visibility="Collapsed">
        	<Rectangle Fill="{StaticResource PhoneBackgroundBrush}" Opacity="0.8"/>
        	<Rectangle Fill="{StaticResource PhoneAccentBrush}" >
        		<Rectangle.OpacityMask>
        			<RadialGradientBrush RadiusY="0.3" RadiusX="0.4" GradientOrigin="0.5,0.3" Center="0.5,0.55">
        				<GradientStop Color="#66000000" Offset="0.201"/>
        				<GradientStop Color="Transparent" Offset="1"/>
        				<GradientStop Color="#B2000000"/>
        			</RadialGradientBrush>
        		</Rectangle.OpacityMask>
        	</Rectangle>
        	<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal" Height="150">
        		<Button Content="facebook" Width="200" Click="Facebook_Click"/>
        		<Button Content="twitter" Width="200" Click="Twitter_Click"/>
        	</StackPanel>
        </Grid>
        <Grid x:Name="SendGrid" Grid.RowSpan="2" Opacity="0" Visibility="Collapsed">
        	<Rectangle Fill="{StaticResource PhoneBackgroundBrush}" Opacity="0.8"/>
			<Rectangle Fill="{StaticResource PhoneAccentBrush}">
        		<Rectangle.OpacityMask>
        			<RadialGradientBrush RadiusY="0.3" RadiusX="0.4" GradientOrigin="0.5,0.3" Center="0.5,0.55">
        				<GradientStop Color="#66000000" Offset="0.201"/>
        				<GradientStop Color="Transparent" Offset="1"/>
        				<GradientStop Color="#B2000000"/>
        			</RadialGradientBrush>
        		</Rectangle.OpacityMask>
        	</Rectangle>			
        	<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal" Height="150">
        		<Button Content="sms/mms" Width="200" Click="SMS_Click"/>
        		<Button Content="email" Width="200" Click="Email_Click"/>
        	</StackPanel>
        </Grid>
        <Image x:Name="image" Grid.RowSpan="2" Source="/SplashScreenImage.jpg" Stretch="UniformToFill" IsHitTestVisible="False" Margin="0,-32,0,0" RenderTransformOrigin="0.5,0.5" Opacity="0" d:IsHidden="True">
        	<Image.RenderTransform>
        		<CompositeTransform/>
        	</Image.RenderTransform>
        	<Image.Projection>
        		<PlaneProjection CenterOfRotationZ="0.5" CenterOfRotationX="0"/>
        	</Image.Projection>
        </Image>
    	
    </Grid>

</phone:PhoneApplicationPage>